package com.liang.text5;

public class Demo {
    public static void main(String[] args) {
        int x1=3;
        int y1=7;

        int x2=2;
        int y2=5;

        int a;
        int b;

        a=(y2-y1)/(x2-x1);
        System.out.println(a);
        b=(x1*y2-x2*y1)/(x1-x2);
        System.out.println(b);
    }
}
